import request from '@/utils/request'

// 查询房东类型列表
export function listOwnerType(query) {
  return request({
    url: '/system/ownerType/list',
    method: 'get',
    params: query
  })
}

// 查询房东类型详细
export function getOwnerType(id) {
  return request({
    url: '/system/ownerType/' + id,
    method: 'get'
  })
}

// 新增房东类型
export function addOwnerType(data) {
  return request({
    url: '/system/ownerType',
    method: 'post',
    data: data
  })
}

// 修改房东类型
export function updateOwnerType(data) {
  return request({
    url: '/system/ownerType',
    method: 'put',
    data: data
  })
}

// 删除房东类型
export function delOwnerType(id) {
  return request({
    url: '/system/ownerType/' + id,
    method: 'delete'
  })
}
